package com.iraeta.entity.main.vo;

import com.iraeta.entity.main.TreeNode;
import com.iraeta.entity.main.PermissionType;
import java.util.ArrayList;

public class SysPermission {
    public static ArrayList<TreeNode> getPermissionTreeNode(){
        TreeNode pageData_Node = new TreeNode(String.valueOf(PermissionType.pageData), "页面授权");
        TreeNode pageData_page_Node = new TreeNode(String.valueOf(PermissionType.pageData_page), "页面1");
        TreeNode pageData_page2_Node = new TreeNode(String.valueOf(PermissionType.pageData_page2), "页面2");
        TreeNode pageData_page3_Node = new TreeNode(String.valueOf(PermissionType.pageData_page3), "销售订单生产进度");
        TreeNode pageData_page4_Node = new TreeNode(String.valueOf(PermissionType.pageData_page4), "钢球销售订单生产进度");
        pageData_Node.addNode(pageData_page_Node);
        pageData_Node.addNode(pageData_page2_Node);
        pageData_Node.addNode(pageData_page3_Node);
        pageData_Node.addNode(pageData_page4_Node);

        TreeNode dataAdmin_Node = new TreeNode(String.valueOf(PermissionType.dataAdmin), "数据维护");
        TreeNode dataSc_Node = new TreeNode(String.valueOf(PermissionType.dataSc), "生产数据");
        dataAdmin_Node.addNode(dataSc_Node);

        ArrayList<TreeNode> res = new ArrayList<TreeNode>();
        res.add(pageData_Node);
        res.add(dataAdmin_Node);
        return res;
    }
}
